package com.hrt.datasender.datadao.model;

import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

public class BcSendPlatformParamModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    public static String tableName = "BC_SEND_PLATFORM_PARAM";

    public static IField id = new Field(BcSendPlatformParamModel.class, "ID", FieldType.String, true);

    public static IField platformId = new Field(BcSendPlatformParamModel.class, "PLATFORM_ID", FieldType.String, false);

    public static IField paramCodeBus = new Field(BcSendPlatformParamModel.class, "PARAM_CODE_BUS", FieldType.String,
            false);

    public void setId(String value) {
        setFieldValue(id.getFieldName(), value);
    }

    public String getId() {
        Object value = getFieldValue(BcSendPlatformParamModel.id.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setPlatformId(String value) {
        setFieldValue(platformId.getFieldName(), value);
    }

    public String getPlatformId() {
        Object value = getFieldValue(BcSendPlatformParamModel.platformId.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setParamCodeBus(String value) {
        setFieldValue(paramCodeBus.getFieldName(), value);
    }

    public String getParamCodeBus() {
        Object value = getFieldValue(BcSendPlatformParamModel.paramCodeBus.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public String getTableName() {
        return tableName;
    }

    public boolean isNeedCache() {
        return false;
    }

}